<html jwcid="@Shell" title="Results">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Services</title>

        <link jwcid="@Style" href="info.css" media="all"/>

    </head>
    <body jwcid="@Body">

        <table width="100%" border="1">
            <tr>

                <td width="90%">
                    <span jwcid="@Phones"/>
                </td>

                <td width="10%" align="center">
                    <span jwcid="@ChargeButton" serviceID="ognl:@ge.info.pages.SearchStreet@SERVICE_ID"></span>
                </td>
            </tr>
        </table>
        <br>

        <input jwcid="@Errors" exceptions='ognl:exceptions'/>

        <br><br><br>

        <div align='center'>
            <form jwcid="@Form">
                <input jwcid="@PropertySelection" model='ognl:page.getComboes().getCombo("Cities")'
                       value="ognl:city">
                    NABC
                </input>

                <input jwcid="@TextField" value="ognl:street.streetName"/>
                ქუჩის ინდექსით:
                <input jwcid="@TextField" value="ognl:street.streetIndex"/>
                <br><br>
                <input jwcid="@Submit" action="listener:searchStreet" value="Search"/>
            </form>

            <div align="center">
                <form jwcid="@Form" listener="listener:updateTransportType">
                    <input jwcid="@PropertySelection" model='ognl:page.getComboes().getCombo("IncityTransportTypes")'
                           value='ognl:transportType' onchange="this.form.submit()"> NABC </input>
                </form>
                <hr>
                <table width="80%">
                    <tr>
                        <td align="left">
                            <form jwcid="@Form" delegate="ognl:page.delegate">
                                <table>
                                    <tr>
                                        <td>
                                            <input jwcid="@TextField" value="ognl:transport.outPlace" validators="validators:required,minLength=1"  />-დან
                                        </td>
                                        <td>
                                            <input jwcid="@TextField" value="ognl:transport.InPlace"/>–მდე

                                            <!--
                                       validators="validators:required,minLength=1"  />–მდე
                                    -->
                                        </td>

                                        <td>
                                            <input jwcid="@Submit" action="listener:searchTransportByRoute" value="ძებნა მარშრუტით" style="width: 135px"/>
                                        </td>
                                    </tr>

                                </table>
                            </form>
                        </td>
                        <td align="right">
                            <form jwcid="@Form" delegate="ognl:page.delegate">
                                <table>
                                    <tr>
                                        <td>
                                            <input jwcid="@TextField" value="ognl:transport.transportNo" validators="validators:required,minLength=1"  style="width: 75px"/>
                                        </td>

                                        <td>
                                            <input jwcid="@Submit" action="listener:searchTransportByNo" value="ძებნა მარშრუტის ნომრით"  style="width: 175px"/>
                                        </td>
                                    </tr>
                                </table>
                            </form>
                        </td>
                    </tr>
                </table>
                <hr><hr>
            </div>
            <br><br>

            <span jwcid="@If" condition="ognl:streetsFound!=null && streetsFound.size()>0">
                <form jwcid="@Form">
                    <table border="1">
                        <tr>
                            <th>
                                &nbsp;
                            </th>
                            <th>
                                ქალაქი
                            </th>
                            <th>
                                ქუჩა
                            </th>
                            <th>
                                ძველი დასახელება
                            </th>
                            <th>
                                უბანი
                            </th>
                        </tr>
                        <span jwcid="@For" source="ognl:streetsFound" value="ognl:loopStreet">
                            <tr>
                                <td>
                                    <input type="Submit" jwcid="@Submit" parameters="ognl:loopStreet" value="SMS" style="width: 35px" action="listener:sendSMS"/>
                                </td>
                                <td>
                                    <span jwcid="@Insert"
                                          value='ognl:page.getComboes().getCombo("Cities").getLabelFromPk(loopStreet.cityID)'/>
                                </td>
                                <td>
                                   
                                     <a jwcid="@DirectLink" listener="listener:opensearchStreetdet"  parameters="ognl:loopStreet">
                                    <input jwcid="@Insert" value="ognl:loopStreet.streetName"/>
                                    </a>
                                </td>
                                  <td>
                                    <span jwcid="@Insert" value="ognl:loopStreet.oldName"/> &nbsp;
                                </td>
                             
                                <td>
                                    <span jwcid="@Insert" value="ognl:loopStreet.streetDistrict"/> &nbsp;
                                </td>
                            </tr>
                        </span>
                    </table>


                </form>
            </span>
            <span jwcid="@Else">
                მონაცემები ვერ მოიძებნა
            </span>
        </div>



        <div align="center">
            <form jwcid="@Form">
                <table border="1" cellpadding="15">
                    <span jwcid="@For" source="ognl:transports" value="ognl:loopTransport">
                        <tr>
                            <td>
                                <input type="Submit" jwcid="@Submit" parameters="ognl:loopTransport" value="SMS" style="width: 35px" action="listener:sendTransportSMS"/>
                            </td>
                            <td>
                                <a jwcid="@DirectLink" listener="listener:showRoute" parameters="ognl:loopTransport">
                                    <input jwcid="@Insert" value="ognl:loopTransport.transportNo"/>
                                </a>
                            </td>
                            <td bgcolor="#D8D8D8">
                                <input jwcid="@Insert" value="ognl:loopTransport.inPlace"/> &nbsp;
                            </td>
                            <td bgcolor="#FFFFFF">
                                <input jwcid="@Insert" value="ognl:loopTransport.outPlace"/> &nbsp;
                            </td>
                            <td>
                                <span jwcid="@If" condition="ognl:loopTransport.direction==1">
                                    ჩვეულებრივი
                                </span>
                                <span jwcid="@Else">
                                    წრიული
                                </span>
                            </td>
                        </tr>
                    </span>
                </table>
            </form>
            <span jwcid="@If" condition="ognl:routePartsDown!=null  || routePartsUp!=null">
                <table>
                      <td>
                        <font size="2">
მარშრუტი #
</font>
<b>
                                       <input jwcid="@Insert" value="ognl:trno"/>
        </b>
                                       </td>

                    <tr valign="top">
                        <td width="50%">
                            <form jwcid="@Form">
                                <input type="Submit" jwcid="@Submit"  value="SMS" style="width: 35px" action="listener:sendRoutePartsDown"/>
                            </form>
                            <table border="1" cellpadding="1" bgcolor="#DFDFDF">
                                <span jwcid="@For" source="ognl:routePartsDown" value="ognl:loopTransport">
                                    <tr jwcid="@Any" bgcolor='ognl:(loopTransport.searchedFor)?"#FFFFFF":"#DFDFDF"' valign="top">
                                        <td>
                                        <input jwcid="@Insert" value="ognl:loopTransport.stopCount"/>

                                        <td>
                                            <input jwcid="@Insert" value="ognl:loopTransport.outPlace"/>
                                        </td>
                                        <td>
                                            <input jwcid="@Insert" value="ognl:loopTransport.note"/>
                                        </td>
                                    </tr>
                                </span>
                            </table>

                        </td>
                        <td width="50%">
                            <span jwcid="@If" condition="ognl: routePartsUp!=null">
                                <form jwcid="@Form">
                                    <input type="Submit" jwcid="@Submit"  value="SMS" style="width: 35px" action="listener:sendRoutePartsUP"/>
                                </form>
                            </span>
                            <table border="1" cellpadding="1" bgcolor="#DFDFDF">
                                <span jwcid="@For" source="ognl:routePartsUp" value="ognl:loopTransport">
                                    <tr jwcid="@Any" bgcolor='ognl:(loopTransport.searchedFor)?"#FFFFFF":"#DFDFDF"' valign="top">
                                        <td>
                                        <input jwcid="@Insert" value="ognl:loopTransport.stopCount"/>
                                        <td>
                                            <input jwcid="@Insert" value="ognl:loopTransport.outPlace"/>
                                        </td>
                                        <td>
                                            <input jwcid="@Insert" value="ognl:loopTransport.note"/>
                                        </td>
                                    </tr>
                                </span>
                            </table>
                        </td>
                    </tr>
                </table>
            </span>
        </div>
    </body>
</html>